<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑角色权限</title>
</head>
<body>
    <form action="/role/saveRoleResource" method="post">
        <input type="hidden" name="roleId" value="${roleId}">
        <table border="1">
            <thead>
            <tr>
                <th></th>
                <th>权限标识</th>
                <th>权限url</th>
            </tr>
            </thead>
            <tbody>
            <#list  resources as item>
                <tr>
                    <td><input type="checkbox" name="resources" value="${item.id}"></td>
                    <td>${item.resourcePermission}</td>
                    <td>${item.url!}</td>
                    </td>
                </tr>
            </#list>
            </tbody>
        </table>
        <input type="submit" value="确定">
    </form>
    <br/>
    <a href="/index"> 首页</a>
</body>
</html>